<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="Subscription">
	<model>
		<instance>
      <tblSubscription>
        <nSubKey/>
        <cForeignRef />
        <nSubContentId/>
        <nDirId/>
        <nDirType/>
        <cSubName/>
        <cSubXml>
          <Content>
            <Name>Annual Subscription</Name>
            <StockCode />
            <Type>Rolling</Type>
            <Duration>
              <Unit>Year</Unit>
              <Length>1</Length>
              <MinimumTerm>1</MinimumTerm>
              <RenewalTerm>1</RenewalTerm>
            </Duration>
            <PaymentUnit suffix="Following Years">Year</PaymentUnit>
            <SubscriptionPrices delayStart="true">
              <Price currency="GBP" type="sale" validGroup="all" suffix="Following Years">250</Price>
              <Price currency="GBP" type="rrp" suffix="" />
            </SubscriptionPrices>
            <UserGroups>
              <Group id="10" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
              <Group id="" />
            </UserGroups>
            <Prices>
              <Price currency="GBP" validGroup="all" type="sale" suffix="First Year">250</Price>
              <Price currency="GBP" validGroup="all" type="rrp" />
            </Prices>
            <Images>
              <img src="" width="" height="" class="thumbnail" alt="" />
              <img src="" width="" height="" class="display" alt="" />
              <img src="" width="" height="" class="detail" alt="" />
            </Images>
            <ShortDescription />
            <Body />
          </Content>
        </cSubXml>
        <dStartDate/>
        <nPeriod/>
        <cPeriodUnit/>
        <nMinimumTerm/>
        <nRenewalTerm/>
        <nValueNet/>
        <nPaymentMethodId/>
        <bPaymentMethodActive/>
        <cRenewalStatus/>
        <nAuditId/>
        <nAuditKey/>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nStatus/>
        <cDescription/>
      </tblSubscription>
      <tblCartPaymentMethod>
        <nPayMthdKey/>
        <nPayMthdUserId/>
        <cPayMthdProviderName/>
        <cPayMthdProviderRef/>
        <cPayMthdCardType/>
        <cPayMthdDescription/>
        <cPayMthdAcctName/>
        <cPayMthdDetailXml/>
        <nAuditId/>
        <nAuditKey/>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nStatus/>
        <cDescription/>
      </tblCartPaymentMethod>
      <Contact>
        <nContactKey/>
        <nContactDirId/>
        <nContactCartId/>
        <cContactType/>
        <cContactName/>
        <cContactCompany/>
        <cContactAddress/>
        <cContactCity/>
        <cContactState/>
        <cContactZip/>
        <cContactCountry/>
        <cContactTel/>
        <cContactFax/>
        <cContactEmail/>
        <cContactXml/>
        <nAuditId/>
        <cContactForiegnRef/>
      </Contact>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
    <bind nodeset="tblSubscription">
      <bind id="cSubName" nodeset="cSubName" required="true()" type="string"/>
      <bind id="nValueNet" nodeset="nValueNet" required="true()" type="string"/>
      <bind id="cPeriodUnit" nodeset="cPeriodUnit" required="true()" type="string"/>
      <bind id="nRenewalTerm" nodeset="nRenewalTerm" required="true()" type="string"/>
      <bind id="cRenewalStatus" nodeset="cRenewalStatus" required="true()" type="string"/>
      <bind id="dExpireDate" nodeset="dExpireDate" required="true()" type="string"/>
      <bind id="dStartDate" nodeset="dStartDate" required="true()" type="string"/>
      <bind nodeset="nPaymentMethodId">
        <bind id="cPaymentMethod" nodeset="@type" required="true()" type="string"/>
      </bind>
    </bind>
    <bind nodeset="Contact">
      <bind id="cContactName" nodeset="cContactName" required="true()" type="string"/>
      <bind id="cContactEmail" nodeset="cContactEmail" required="true()" type="string"/>
      <bind id="cContactCompany" nodeset="cContactCompany" required="false()" type="string"/>
      <bind id="cContactAddress" nodeset="cContactAddress" required="true()" type="string"/>
      <bind id="cContactCity" nodeset="cContactCity" required="true()" type="string"/>
      <bind id="cContactState" nodeset="cContactState" required="true()" type="string"/>
      <bind id="cContactZip" nodeset="cContactZip" required="true()" type="string"/>
      <bind id="cContactCountry" nodeset="cContactCountry" required="true()" type="string"/>
    </bind>
	</model>
	<group ref="EditSubscription" class="2Col">
		<label>Confirm Subscription</label>
			<group class="inline">
				<label>Subscription Details</label>
				<input bind="cSubName" class="readonly">
					<label>Subscription Name</label>
				</input>
        <input bind="nValueNet" class="readonly">
          <label>Repeat Price</label>
        </input>
        <input bind="cPeriodUnit" class="readonly">
          <label>Renewal Every</label>
        </input>
        <input bind="nRenewalTerm" class="readonly">
          <label>Renewal Term</label>
        </input>
        <input bind="cRenewalStatus" class="readonly">
          <label>Renewal Type</label>
        </input>
        <input bind="dStartDate" class="readonly">
          <label>Start Date</label>
        </input>
        <input bind="dExpireDate" class="readonly">
          <label>Next Payment Will Be Collected</label>
        </input>
      </group>
    <group class="inline">
      <label>Billing Details</label>
      <input bind="cContactName" class="required">
        <label>Name</label>
      </input>
      <input bind="cContactEmail" class="required">
        <label>Email</label>
      </input>
      <input bind="cContactCompany" class="">
        <label>Company</label>
      </input>
      <input bind="cContactAddress" class="required">
        <label>Street</label>
      </input>
      <input bind="cContactCity" class="required">
        <label>Town</label>
      </input>
      <input bind="cContactState" class="required">
        <label>County</label>
      </input>
      <input bind="cContactZip" class="required">
        <label>Postcode</label>
      </input>
      <select1 bind="cContactCountry" class="dropdown ewQuery required" query="Countries" appearance="minimal">
        <label>Country</label>
      </select1>
    </group>
	</group>
  <group>
    <select1 bind="cPaymentMethod">
      <label>Select New Payment Method</label>
    </select1>
  </group>
	<group>
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Update Payment Details</label>
		</submit>
	</group>
</Content>
